﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebApplication/MasterPageUsers.master" AutoEventWireup="true" CodeFile="RegisterForm.aspx.cs" Inherits="WebApplication_RegisterForm" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">

            <div id="content">
                        
                           
                            
                <span style="font-size: x-large; color: #FFFFFF"><strong>
                <span style="background-color: #FF6600">REGISTER</span></strong></span><br />
                        
                           
                            
                <table style="width:100%;">
                    <tr>
                        <td style="width: 143px; ">Username</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtUsername" runat="server" class="input-small" 
                                AutoPostBack="True" ontextchanged="txtUsername_TextChanged" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:Label ID="Label1" runat="server" ForeColor="#FF6600"></asp:Label>
                            <asp:RequiredFieldValidator ID="RFVUsername" runat="server" 
                                ControlToValidate="txtUsername" ErrorMessage="Username is blank" 
                                ForeColor="#FF6600" ValidationGroup="1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">Password</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" 
                                class="input-small" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:RequiredFieldValidator ID="RFVPassword" runat="server" 
                                ControlToValidate="txtPassword" Display="Dynamic" 
                                ErrorMessage="Password is blank" ForeColor="#FF6600" ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="txtPassword" 
                                ErrorMessage=" Password must be at least 6 characters,  must include at least one upper case letter, one lower case letter, and one numeric digit." 
                                ForeColor="#FF6600" 
                                ValidationExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">Confirm Password</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtConPass" runat="server" TextMode="Password" 
                                style="text-align: left" class="input-small" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:RequiredFieldValidator ID="RFVConPass" runat="server" 
                                ControlToValidate="txtConPass" Display="Dynamic" 
                                ErrorMessage="Confirm Password is blank" ForeColor="#FF6600" 
                                ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CVConPass" runat="server" 
                                ControlToCompare="txtPassword" ControlToValidate="txtConPass" Display="Dynamic" 
                                ErrorMessage="Confirm Password is not matched" ForeColor="#FF6600" 
                                ValidationGroup="1"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">Full Name</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtFullname" runat="server" class="input-small" 
                                ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:RequiredFieldValidator ID="RFVFullName" runat="server" 
                                ControlToValidate="txtFullname" Display="Dynamic" 
                                ErrorMessage="Full name is blank" ForeColor="#FF6600" ValidationGroup="1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">Email</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtEmail" runat="server" style="text-align: left" 
                                CssClass="input-small" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Email is blank" 
                                ForeColor="#FF6600" ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtEmail" ErrorMessage="Wrong Email format" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                ValidationGroup="1" ForeColor="#FF6600"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; height: 96px;">Confirm Email</td>
                        <td style="width: 89px; height: 96px;">
                            <asp:TextBox ID="txtConEmail" runat="server" style="text-align: left" 
                                CssClass="input-small" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; height: 96px;">
                            <asp:RequiredFieldValidator ID="RFVConEmail" runat="server" 
                                ControlToValidate="txtConEmail" Display="Dynamic" 
                                ErrorMessage="Confirm Email is blank" ForeColor="#FF6600" 
                                ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CVConEmail" runat="server" 
                                ControlToCompare="txtEmail" ControlToValidate="txtConEmail" Display="Dynamic" 
                                ErrorMessage="Confirm Email is not match" ForeColor="#FF6600" 
                                ValidationGroup="1"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">Address</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtAddress" runat="server" Height="59px" TextMode="MultiLine" 
                                Width="170px" CssClass="input-medium" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:RequiredFieldValidator ID="RFVAddress" runat="server" 
                                ControlToValidate="txtAddress" Display="Dynamic" 
                                ErrorMessage="Address is blank" ForeColor="#FF6600" ValidationGroup="1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">Phone number</td>
                        <td style="width: 89px">
                            <asp:TextBox ID="txtTel" runat="server" style="text-align: left" 
                                CssClass="input-medium" ValidationGroup="1"></asp:TextBox>
                        </td>
                        <td style="width: 75px; ">
                            <asp:RequiredFieldValidator ID="RFVTel" runat="server" 
                                ControlToValidate="txtTel" Display="Dynamic" 
                                ErrorMessage="Phone number is blank" ForeColor="#FF6600" 
                                ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                ControlToValidate="txtTel" Display="Dynamic" 
                                ErrorMessage="Phone number must be at least 7 digits and not much more than 11 digits" 
                                ForeColor="#FF6600" ValidationExpression="[0-9].{7,10}"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 143px; ">&nbsp;</td>
                        <td style="width: 89px">
                            <asp:Button ID="btSubmit" runat="server" Text="Submit" OnClick="btSubmit_Click" 
                                style="text-align: center; font-family: Garamond; font-size: medium;" Height="26px" 
                                ValidationGroup="1" BackColor="#00CC66" BorderColor="#00CC66" 
                                BorderStyle="Solid" Font-Bold="True" ForeColor="White"/>
                        </td>
                        <td style="width: 75px; ">&nbsp;</td>
                    </tr>
                </table>
                        
                           
                            
            </div><!--end content-->

    </asp:Content>


<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
    <div id="sidebar">
        <ul class="nav">
            <li ><a class="headitem item1"  >Home</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li><a href="Default.aspx">Welcome</a></li>
                </ul>
            </li>
            <li><a class="headitem item2" >Products</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        <li><a href="Encapsulation.aspx">Encapsulation</a></li>
                    <li><a href="Tablet.aspx">Tablet</a></li>
                    <li><a href="LiquidFilling.aspx">Liquid Filling</a></li>
                </ul>
            </li>
            <li><a class="headitem item3" >Career</a>
                <ul class="opened">
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li class="current"><a href="RegisterForm.aspx">Register</a></li>
                    <li><a href="Resume.aspx">Upload Resume file</a></li>
                </ul>
            </li>
            <li><a class="headitem item8" >Login</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li><a href="Login.aspx">Login</a></li>
                </ul>
            </li>
            <li><a class="headitem item4" >Quote Us</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li><a href="QuoteUs.aspx">Quote Us</a></li>
                </ul>
            </li>
            <li><a class="headitem item5" >About Us</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li><a href="AboutUs.aspx">About Us</a></li>
                </ul>
            </li>
            <li><a class="headitem item9" >Contact Us</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li><a href="ContactUs.aspx">Contact Us</a></li>
                </ul>
            </li>
            <li><a class="headitem item10" >Admin Panel</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        
                                        <li><a href="ADAccounts.aspx">Admin Panel</a></li>
                </ul>
            </li>
        </ul>
                            <!--end subnav-->
                            
                            <div class="flexy_datepicker">
        </div>
        <ul>
        </ul>
    </div>
</asp:Content>



